var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var achieveModel = require('../../app/models/achieveModel');
var config = require('../config');

suite('测试achieveModel', function () {
    var achieve_model;
    setup(function (done) {
        achieveModel.getByRoleId(config.role_id, function (err, model) {
            assert.equal(err == null, true);
            achieve_model = model;
            achieve_model.toJSON();
            done();
        });
    });

    suite('getCurrentTaskList', function () {
        test('获取当前的任务', function () {
            achieve_model.getCurrentTaskList();
        });
    });

    suite('getCurrentTaskList', function () {
        test('获取当前的任务', function () {
            achieve_model.isTaskComplete(1);
        });
    });

    suite('addTask', function () {
        test('添加任务', function () {
            achieve_model.addTask(1);
        });
    });
});
